package org.ainlolcat.ctp.guice.config;

import com.google.inject.AbstractModule;
import com.google.inject.Singleton;
import org.ainlolcat.ainscience2.controller.loader.impl.ConfigurationLoaderImpl;
import org.ainlolcat.ctp.controller.Dogma;
import org.ainlolcat.ctp.controller.DogmaImpl;
import org.ainlolcat.ctp.model.configuration.loader.ConfigurationLoader;
import org.ainlolcat.ctp.model.configuration.loader.impl.XMLConfigurationLoader;
import org.ainlolcat.ctp.module.Container;
import org.ainlolcat.ctp.module.impl.ContainerImpl;

/**
 * Created by IntelliJ IDEA.
 * User: ain
 * Date: 06.09.12
 * Time: 11:32
 * To change this template use File | Settings | File Templates.
 */
public class LocalConfigurationModule extends AbstractModule {
    @Override
    protected void configure() {
        bind(Dogma.class).to(DogmaImpl.class).in(Singleton.class);
        bind(Container.class).to(ContainerImpl.class).in(Singleton.class);
        bind(ConfigurationLoader.class).to(XMLConfigurationLoader.class).in(Singleton.class);
    }
}
